<div class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header clearfix">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <?php
            echo $this->Html->link(__('ORDER MUSIC'), '/', array('class' => 'navbar-brand'));
            ?>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <?php if (!$loggedIn): ?>
                    <li><?php echo $this->Html->link(__('Login'), array('controller' => 'users', 'action' => 'login')) ?></li>
                <?php else: ?>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $currentUser['username']; // $this->Session->read('Auth.User.username'); ?> <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li>
                                <?php echo $this->Html->link(__('Chang Password'), array('controller' => 'users', 'action' => 'edit', $currentUser['id'])) ?>
                            </li>
                            <li>
                                <?php echo $this->Html->link(__('Logout'), array('controller' => 'users', 'action' => 'logout')) ?>
                            </li>
                        </ul>
                    </li>
                <?php endif; ?>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>
